//
//  DHNetworkManager+HotelNetwork.h
//  精品酒店
//
//  Created by DIANGHONG on 2018/5/7.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "DHNetworkManager.h"
@class DHHomeDataModel;
@class DHMemberInfoModel;
@class DHAuthodDatasModel;
@class DHCleanOrderDataModel;
@class DHAddressModel;
@class DHPayLogModel;
@interface DHNetworkManager (HotelNetwork)
#pragma mark: - 编辑地址网络请求
- (void)postEditAddressWithUrl:(NSString *)url param:(NSMutableDictionary *)param completion:(void(^)(BOOL isSuccess, NSString *statusInfo))completion;

- (void)loadClearAreaWithKey:(NSString *)key
                  completion:(void(^)(id json, BOOL isSuccess))completion;

// 请求首页数据
- (void)requestHomeDatasWithCompletion:(void(^)(DHHomeDataModel *datasModel, BOOL isSuccess))completion;
- (void)requestHomeListWithPage:(NSString *)page lng:(NSString *)lng
                            lat:(NSString *)lat area_name:(NSString *)area_name;

- (void)postClearTaskWithParam:(NSDictionary *)param completion:(void (^)(BOOL isSuccess, NSString *))completion;
/**
 注册账户的网络请求

 @param username 名称
 @param phone 手机号
 @param secret 手机验证码
 @param password 密码
 @param completion 完成回调
 */
- (void)requestToRigestAccountWithUserName:(NSString *)username
                         phone:(NSString *)phone
                        secret:(NSString *)secret
                      password:(NSString *)password
                    completion:(void(^)(NSString *statusInfo, BOOL isSuccess))completion;

#pragma mark: - 发送评价到服务器网络请求
- (void)postEvaWithParams:(NSDictionary *)params completion:(void(^)(BOOL isSuccess, NSString *statusInfo))completion;

/*
 全部任务列表网络请求
 **/
- (void)requestHomeListWithPage:(NSString *)page
                            lng:(NSString *)lng
                            lat:(NSString *)lat
                      area_name:(NSString *)area_name
                         params:(NSDictionary *)params
                     completion:(void(^)(id json, BOOL isSuccess))completion;

/*
 会员认证网络请求
 **/
- (void)postMemberAuthodWithParams:(NSDictionary *)params
                          finished:(void(^)(BOOL isSuccess, DHAuthodDatasModel *datasModel, NSString *error))finished;

/*
 我的清洁单的网络请求
 **/
- (void)requestCleanOrderListWithCurpage:(NSString *)curpage status:(NSString *)status
                                is_store:(NSString *)is_store
                                is_mouth:(NSString *)is_mouth
                           finishedBlock:(void(^)(BOOL isSuccess ,DHCleanOrderDataModel *datasModel))finishedBlock;

#pragma mark: - 账单明细网络请求
- (void)requestPayLogWithParam:(NSMutableDictionary *)param completion:(void(^)(BOOL isSuccess,DHPayLogModel *model,BOOL hasmore))completion;

/*
 预约任务
 **/
- (void)postTaskWithParam:(NSDictionary *)param
               completion:(void(^)(BOOL isSuccess, NSString *statusInfo))completion;

#pragma mark: - 评价列表网络请求
- (void)requestEvaListWithParam:(NSMutableDictionary *)dict;
#pragma mark: - 我发布的任务网络请求
- (void)requestMyPostTaskWithParam:(NSMutableDictionary *)param completion:(void(^)(BOOL isSuccess,DHCleanOrderDataModel *model))completion;

#pragma mark: - 加载地址列表网络请求
- (void)requestAddressListWithCompletion:(void(^)(BOOL isSuccess, NSArray<DHAddressModel *> *addressList,NSString *errorInfo))completion;
/**
 用户登录请求方法

 @param userName 用户名
 @param password 密码
 @param completion 完成回调BOOL isSuccess, NSString *statusInfo（失败或成功的状态描述）
 */
- (void)userLogin:(NSString *)userName password:(NSString *)password completion:(void(^)(BOOL isSuccess, NSString *statusInfo))completion;
/**
 网络请求我的界面

 @param key key

 @param completion 完成回调
 */
- (void)requestMineInfoWithKey:(NSString *)key completion:(void(^)(DHMemberInfoModel *memberInfo, BOOL isSuccess))completion;

/**
 获取手机验证码的网络请求

 @param phoneNumber 手机号
 */
- (void)getPhoneConfirmCode:(NSString *)phoneNumber completion:(void(^)(NSString *statusInfo, BOOL isSuccess))completion;

@end
